package com.xly.webclick.databinding;

import android.databinding.BindingAdapter;
import android.databinding.BindingMethod;
import android.databinding.BindingMethods;

import com.xly.webclick.cusview.VerificationCodeView;

/**
 * Created by xuleyuan on 2018/8/18
 */
@BindingMethods({@BindingMethod(type = VerificationCodeView.class, attribute = "onCodeFinish", method = "onCodeFinishListener")})

public class CountCodeAdapter {

    @BindingAdapter({"onCodeFinish"})
    public static void startCountDown(VerificationCodeView countView, VerificationCodeView.OnCodeFinishListener listener) {

        countView.setOnCodeFinishListener(listener);

    }

}
